package cn.yj.core.business.controller;

import cn.yj.config.web.AppBaseController;
import cn.yj.core.business.service.UsedRemarkService;
import cn.yj.entity.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author 永健
 * @since 2021-05-29 13:06
 */
@RequestMapping("/usedRemark")
@RestController
public class UsedRemarkController extends AppBaseController {

    @Resource
    private UsedRemarkService service;

    @GetMapping("/list")
    public R list(@RequestParam Map<String, Object> params) {
        params.put("userCode", getUserCode());
        return success(service.getOftenUsedRemark(params));
    }

}
